import {getItem, setItem} from '@/utils/cookies';
export const defaultColor = '#409eff';
export default {
    namespaced:true,
    state:()=>({
      mainColor:getItem('mainColor') || defaultColor
    }),
    mutations:{
        setMainColor(state,color){
            state.mainColor = color;
            setItem('mainColor',color);
        }
    },
    actions:{

    }
};